package main

import "fmt"

func main() {
	res := deferTest(1, 2)
	fmt.Println("main res =", res)
}

func deferTest(n1 int, n2 int) int {
	defer fmt.Println("n1 =", n1)
	defer fmt.Println("n2 =", n2)
	n1 = n1 + n2
	fmt.Println("res =", n1)
	return n1
}
